﻿using System;
using NUnit.Framework;
using TheBoard.Models.YepNope;

namespace TheBoard.Tests
{
    [TestFixture]
    public class ScratchFixture
    {
        [Test]
        public void Test()
        {
            var yepnope = new YepNopeConfig();

            yepnope
                .Group("jquery")
                    .Yep("http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js");
            yepnope
                .Group("bootrap.css")
                .Yep("http://twitter.github.com/bootstrap/assets/css/bootstrap.css",
                     "http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css");
            yepnope.Group("bootstrap")
                .DependsOnGroup("jquery")
                .Yep("http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.0.2/bootstrap.min.js");


            yepnope.Group("init")
                .DependsOnGroup("jquery")
                .Complete("$(function () {})");

            Console.Out.WriteLine(yepnope.Write("yepnope"));
            //yepnope.Render();
        }
    }
}
